Skip to content

Remove support for legacy no-prefix pickle#1986

Open
albertvillanova wants to merge 2 commits intohuggingface:mainfrom
albertvillanova:fu-1637-2
Open

Remove support for legacy no-prefix pickle#1986
albertvillanova wants to merge 2 commits intohuggingface:mainfrom
albertvillanova:fu-1637-2

Conversation

@albertvillanova
Copy link
Member

Remove support for legacy no-prefix pickle.

Follow-up to:

Problem

RemotePythonExecutor._deserialize_final_answer accepted unprefixed payloads as a legacy fallback.

In my opinion, due to our deployment model (ephemeral, per-agent sandboxes), that path is unnecessary and broadens ambiguous/insecure decoding behavior.

Solution

Made final-answer decoding strict and explicit:

  • Accept only safe: and pickle: prefixed payloads
  • Keep allow_pickle gate for pickle:
  • Reject unprefixed payloads with a clear SerializationError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant